﻿using System.ComponentModel.Design;
using TupleExample;

Person p = new Person();
Tuple<string, int> info = p.GetPersonDetail();
Console.WriteLine(info.Item1);
Console.WriteLine(info.Item2);

Customer customer = new Customer();
// get details
(int id, string name, string email) customerDetails = customer.GetCustomerDetails();
Console.WriteLine(customerDetails.id + "" + customerDetails.name + "" + customerDetails.email);


(int id, string name, string email) = customer.GetCustomerDetails();
Console.WriteLine(id + "" + name + "" + email);


(int customerId, string customerName, _) = customer.GetCustomerDetails();


Console.ReadKey();